FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.7.16  |  FHIR Version n/a  User: [n/a]

Resource Measure/FHIR Server from package hl7.fhir.us.cqfmeasures#5.0.0 (328 ms)

Package hl7.fhir.us.cqfmeasures
Type Measure
Id Id
FHIR Version R4
Source http://hl7.org/fhir/us/cqfmeasures/http://hl7.org/fhir/us/cqfmeasures/STU5/Measure-EXM108-FHIR.html
Url http://hl7.org/fhir/us/cqfmeasures/Measure/EXM108-FHIR
Version 8.2.000
Status active
Date 2022-02-22
Name EXM108
Title EXM108 - Venous Thromboembolism Prophylaxis
Experimental True
Realm us
Authority hl7
Description This measure assesses the number of patients who received VTE prophylaxis or have documentation why no VTE prophylaxis was given the day of or the day after hospital admission or surgery end date for surgeries that start the day of or the day after hospital admission
Copyright Measure specifications are in the Public Domain. LOINC(R) is a registered trademark of the Regenstrief Institute. This material contains SNOMED Clinical Terms(R) (SNOMED CT(C)) copyright 2004-2017 International Health Terminology Standards Development Organization. All rights reserved.

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

Title: EXM108 - Venous Thromboembolism Prophylaxis
Id: EXM108-FHIR
Version: 8.2.000
Url: EXM108 - Venous Thromboembolism Prophylaxis
Official

108

Effective Period: 2018-01-01..2018-12-31
Experimental: true
Publisher: HL7 International / Clinical Quality Information
Description:

This measure assesses the number of patients who received VTE prophylaxis or have documentation why no VTE prophylaxis was given the day of or the day after hospital admission or surgery end date for surgeries that start the day of or the day after hospital admission

Use Context:
code value
venue
Jurisdiction: US
Topic: 57024-2
Copyright:

Measure specifications are in the Public Domain.

LOINC(R) is a registered trademark of the Regenstrief Institute.

This material contains SNOMED Clinical Terms(R) (SNOMED CT(C)) copyright 2004-2017 International Health Terminology Standards Development Organization. All rights reserved.

Disclaimer:

These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty

Basis: Encounter
Scoring:

Proportion

Type:

process

Rationale:

Hospitalized patients at high-risk for VTE may develop an asymptomatic deep vein thrombosis (DVT), and die from pulmonary embolism (PE) even before the diagnosis is suspected. The majority of fatal events occur as sudden or abrupt death, underscoring the importance of prevention as the most critical action step for reducing death from PE (Geerts, et al, 2008).

The estimated annual incidence of deep-vein thrombosis (DVT) and pulmonary embolism (PE), known collectively as venous thromboembolism (VTE), is approximately 900,000 (Geerts, et al, 2008). Approximately two-thirds of cases of DVT or PE are associated with recent hospitalization. This is consistent with the 2001 report by The Agency for Healthcare Research and Quality (AHRQ). AHRQ indicates that "the appropriate application of effective preventive measures in hospitals has major potential for improving patient safety by reducing the incidence of venous thromboembolism" (Shojania, 2001).

Despite its proven effectiveness, rates of appropriate thromboprophylaxis remain low in both medical and surgical patients. A recent analysis from the ENDORSE survey, which evaluated prophylaxis rates in 17,084 major surgery patients, found that more than one third of patients at risk for VTE (38%) did not receive prophylaxis and that rates varied by surgery type (Cohen, et al., 2008).

In a review of evidence-based patient safety practices, the Agency for Healthcare Research and Quality defined thromboprophylaxis against VTE as the "number one patient safety practice" for hospitalized patients (Shojania, 2001). Updated "safe practices" published by the National Quality Forum (NQF) recommend routine evaluation of hospitalized patients for risk of VTE and use of appropriate prophylaxis (National Quality Forum. National Voluntary Consensus Standards for Prevention and Care of Venous Thromboembolism, 2006).

As noted by the ACCP, a vast number of randomized clinical trials provide irrefutable evidence that thromboprophylaxis reduces VTE events, and there are studies that have also shown that fatal PE is prevented by thromboprophylaxis (Geerts, et al. 2008).

Some select surgeries have previously been monitored in the Surgical Care Improvement Project; since performance on these surgeries has achieved very high levels, they are not included in this measure.

Clinical recommendation statement:

Failure to recognize and protect patients at risk for venous thromboembolism (VTE) increases the chances for acutely ill hospitalized patients at high risk for developing a deep vein thrombosis or dying from a pulmonary emboli. Screening all patients is the only evidence based practice in reducing incidence of disease. All hospitalized patients should be evaluated for primary VTE prophylaxis, and given appropriate prophylaxis when indicated.

Improvement Notation:

Increased score indicates improvement

Population Criteria:
Initial Population: Patients age 18 and older discharged from hospital inpatient acute care without a diagnosis of venous thromboembolism (VTE) or obstetrics with a length of stay less than or equal to 120 days that ends during the measurement period
Numerator: Patients who received VTE prophylaxis: - the day of or the day after hospital admission - the day of or the day after surgery end date for surgeries that end the day of or the day after hospital admission Patients who have documentation of a reason why no VTE prophylaxis was given: - between arrival and hospital admission - the day of or the day after hospital admission - the day of or the day after surgery end date (for surgeries that end the day of or the day after hospital admission)
Denominator: All patients in the initial population
Denominator Exclusion: * Patients who have a length of stay less than 2 days * Patients with comfort measures documented anytime between arrival and the day after hospital admission * Patients with comfort measures documented by the day after surgery end date for surgeries that start the day of or the day after hospital admission * Patients who are direct admits to intensive care unit (ICU), or transferred to ICU the day of or the day after hospital admission with ICU length of stay greater than or equal to one day * Patients with a principal diagnosis of mental disorders or stroke * Patients with a principal procedure of Surgical Care Improvement Project (SCIP) VTE selected surgeries
Supplemental Data Elements:

SDE Ethnicity

SDE Payer

SDE Race

SDE Sex

Libraries:
EXM108 - Venous Thromboembolism Prophylaxis Library
Terminology and Other Dependencies:
  • Supplemental Data Elements Libraryversion: null2.0.0)
  • http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
  • MAT Global Common Functions FHIR Libraryversion: null5.0.000)
  • TJC Overall Libraryversion: null4.0.000)
  • VTE ICU Libraryversion: null5.0.000)
  • Condition Clinical Status Codes
  • Logical Observation Identifiers, Names and Codes (LOINC)
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.223
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.400
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.222
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.93
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.23
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.105.12.1004
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272
  • http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45
  • Parameters:
    name use min max type
    Measurement Period In 0 1 Period
    SDE Sex Out 0 1 Coding
    Numerator Out 0 * Encounter
    Denominator Out 0 * Encounter
    SDE Payer Out 0 * Resource
    Initial Population Out 0 * Encounter
    SDE Ethnicity Out 0 * Coding
    Denominator Exclusion Out 0 * Resource
    SDE Race Out 0 * Coding
    DataRequirements:
    Resource Type Resource Elements Valueset Name Valueset
    Patient(Patient) extension value birthDate url
    Encounter(Encounter) period type Emergency Department Visit http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    Encounter(Encounter) period type Observation Services http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    Encounter(Encounter) period type status Encounter Inpatient http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
    MedicationAdministration(MedicationAdministration) dosage.route dosage medication Unfractionated Heparin http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218
    MedicationAdministration(MedicationAdministration) medication Direct Thrombin Inhibitor http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205
    MedicationAdministration(MedicationAdministration) medication Glycoprotein IIb/IIIa Inhibitors http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41
    MedicationAdministration(MedicationAdministration) dosage.route dosage medication status Low Dose Unfractionated Heparin for VTE Prophylaxis http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39
    MedicationAdministration(MedicationAdministration) medication status Low Molecular Weight Heparin for VTE Prophylaxis http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219
    MedicationAdministration(MedicationAdministration) medication status Injectable Factor Xa Inhibitor for VTE Prophylaxis http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211
    MedicationAdministration(MedicationAdministration) medication status Warfarin http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232
    MedicationAdministration(MedicationAdministration) effective medication status Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134
    MedicationRequest(MedicationRequest) medication Low Dose Unfractionated Heparin for VTE Prophylaxis http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39
    MedicationRequest(MedicationRequest) medication Low Molecular Weight Heparin for VTE Prophylaxis http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219
    MedicationRequest(MedicationRequest) medication Injectable Factor Xa Inhibitor for VTE Prophylaxis http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211
    MedicationRequest(MedicationRequest) medication Warfarin http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232
    ServiceRequest(ServiceRequest) code Venous foot pumps (VFP) http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230
    ServiceRequest(ServiceRequest) code Intermittent pneumatic compression devices (IPC) http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214
    ServiceRequest(ServiceRequest) code Graduated compression stockings (GCS) http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256
    ServiceRequest(ServiceRequest) code intent Comfort Measures http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45
    Procedure(Procedure) code General Surgery http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255
    Procedure(Procedure) code Gynecological Surgery http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257
    Procedure(Procedure) code Hip Fracture Surgery http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258
    Procedure(Procedure) code Intracranial Neurosurgery http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260
    Procedure(Procedure) code Urological Surgery http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272
    Procedure(Procedure) code status Comfort Measures http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45
    Procedure(Procedure) code Hip Replacement Surgery http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259
    Procedure(Procedure) code Knee Replacement Surgery http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261
    Procedure(Procedure) code statusReason usedCode id status Device Application http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48
    Procedure(Procedure) code performed status General or Neuraxial Anesthesia http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743
    Condition(Condition) id
    Condition(Condition) code clinicalStatus onset Atrial Fibrillation/Flutter http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202
    Condition(Condition) code clinicalStatus onset Venous Thromboembolism http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279
    Observation(Observation) code value status
    Observation(Observation) code id issued value status INR http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213
    Coverage(Coverage) period type Payer http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
    Location(Location) id
    Direct Reference Codes:
    display code system
    active http://terminology.hl7.org/CodeSystem/condition-clinical
    recurrence http://terminology.hl7.org/CodeSystem/condition-clinical
    relapse http://terminology.hl7.org/CodeSystem/condition-clinical
    inactive http://terminology.hl7.org/CodeSystem/condition-clinical
    remission http://terminology.hl7.org/CodeSystem/condition-clinical
    resolved http://terminology.hl7.org/CodeSystem/condition-clinical
    Risk for venous thromboembolism 72136-5 http://loinc.org
    Logic Definitions:
    Group Scoring Population Criteria Expression
    Measure scoring:

    Proportion

    Initial Population
    define "Initial Population":
      "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
    Numerator
    define "Numerator":
        "Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure"
        union ( "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure"
        			  intersect ( "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE"
        						    union "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery"
        			            )
              )
        union "Encounter With Low Risk for VTE or Anticoagulant Administered"
        union "Encounter With No VTE Prophylaxis Due to Medical Reason"
        union "Encounter With No VTE Prophylaxis Due to Patient Refusal"
    Denominator
    define "Denominator":
          "Initial Population"
    Denominator Exclusion
    define "Denominator Exclusion":
        "Encounter Less Than 2 Days"
         union "Encounter With ICU Location Stay 1 Day or More"
         union "Encounter With Principal Diagnosis of Mental Disorder or Stroke"
         union "Encounter With Principal Procedure of SCIP VTE Selected Surgery"
         union "Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission"
         union "Encounter With Intervention Comfort Measures on Day of or Day After Procedure"
    Library Name Name
    SupplementalDataElements SDE Sex
    define "SDE Sex":
      case
          when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }
          when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }
          else null
        end
    Library Name Name
    EXM108-FHIR SDE Sex
    define "SDE Sex":
    	SDE."SDE Sex"
    Library Name Name
    MATGlobalCommonFunctions Inpatient Encounter
    define "Inpatient Encounter":
    	[Encounter: "Encounter Inpatient"] EncounterInpatient
    		where EncounterInpatient.status = 'finished'
    		    and "LengthInDays"(EncounterInpatient.period) <= 120
    			and EncounterInpatient.period ends during "Measurement Period"
    Library Name Name
    EXM108-FHIR Admission Without VTE or Obstetrical Conditions
    define "Admission Without VTE or Obstetrical Conditions":
    	  	Global."Inpatient Encounter" InpatientEncounter
    		    where not (exists (Global.EncounterDiagnosis(InpatientEncounter)) EncounterDiagnosis
                  where (EncounterDiagnosis.code in "Obstetrics"
    								or EncounterDiagnosis.code in "Venous Thromboembolism"
    								or EncounterDiagnosis.code in "Obstetrics VTE"
    			         )
            )
    Library Name Name
    EXM108-FHIR Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions
    // Note: added FHIRHelpers.ToDate() in R4
    define "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions":
        ( Global."Inpatient Encounter" InpatientEncounter
        		with ["Patient"] BirthDate
        			such that Global."CalendarAgeInYearsAt"(FHIRHelpers.ToDate(BirthDate.birthDate), start of InpatientEncounter.period) >= 18
        )
        intersect "Admission Without VTE or Obstetrical Conditions"
    Library Name Name
    EXM108 VTE Prophylaxis by Medication Administered or Device Applied
    // 10/29: Replaced DeviceUseStatement with Procedure with a new value set and procedure.usdCode for specifying devices
    define "VTE Prophylaxis by Medication Administered or Device Applied":
      ( ["MedicationAdministration": medication in "Low Dose Unfractionated Heparin for VTE Prophylaxis"] VTEMedication
          where VTEMedication.status ='completed'
    			     and VTEMedication.dosage.route in "Subcutaneous route"
      )
       union (["MedicationAdministration": medication in "Low Molecular Weight Heparin for VTE Prophylaxis"] LMWH where LMWH.status = 'completed')
        union (["MedicationAdministration": medication in "Injectable Factor Xa Inhibitor for VTE Prophylaxis"] FactorXa where FactorXa.status = 'completed')
         union (["MedicationAdministration": medication in "Warfarin"] Warfarin where Warfarin.status = 'completed')
          union (
              ["Procedure": "Device Application"] DeviceApplied
              where DeviceApplied.status = 'complete'
                    and (DeviceApplied.usedCode in "Intermittent pneumatic compression devices (IPC)"
                        or DeviceApplied.usedCode in"Venous foot pumps (VFP)"
                        or DeviceApplied.usedCode in "Graduated compression stockings (GCS)"
                        )
              )
    Library Name Name
    EXM108-FHIR Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure
    define "Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure":
     	( from
       			"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
       			"VTE Prophylaxis by Medication Administered or Device Applied" VTEProphylaxis
      		where Coalesce(Global."Normalize Interval"(VTEProphylaxis.effective), Global."Normalize Interval"(VTEProphylaxis.performed)) starts during TJC."CalendarDayOfOrDayAfter"(start of QualifyingEncounter.period)
      		return QualifyingEncounter
     	)
     	union (
        from
      			"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
      			["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
      			"VTE Prophylaxis by Medication Administered or Device Applied" VTEProphylaxis
    			where Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
    				and Coalesce(Global."Normalize Interval"(VTEProphylaxis.effective), Global."Normalize Interval"(VTEProphylaxis.performed)) starts during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
    			return QualifyingEncounter
    	)
    Library Name Name
    EXM108-FHIR Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure
    define "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure":
    	( from
        		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
      			["MedicationAdministration": medication in "Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment"] FactorXaMedication
        where FactorXaMedication.status = 'completed'
          and Global."Normalize Interval"(FactorXaMedication.effective) starts during TJC."CalendarDayOfOrDayAfter"(start of QualifyingEncounter.period)
        return QualifyingEncounter
        )
        union ( from
        				  "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
          				["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
          				["MedicationAdministration": medication in "Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment"] FactorXaMedication
          			where FactorXaMedication.status = 'completed'
                    and AnesthesiaProcedure.status = 'completed'
          			    and Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
          					and Global."Normalize Interval"(FactorXaMedication.effective) starts during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
          			return QualifyingEncounter
          		)
    Library Name Name
    EXM108-FHIR Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE
    /*NOTE: Feedback at Digitial Quality Summit 2019 indicates verificationStatus may be difficult for implementers to retrieve
            both condition.clinicalStatus and condition.verificationStatus = 'confirmed'
    */
    define "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE":
    	( "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
    		with ["Condition": code in "Atrial Fibrillation/Flutter"] AtrialFibrillation
    		such that FHIRHelpers.ToConcept(AtrialFibrillation.clinicalStatus) in { Global."active", Global."recurrence", Global."relapse" }
    			and Global."Normalize Interval"(AtrialFibrillation.onset) starts on or before end of QualifyingEncounter.period
        )
        union ( "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
        				where Global.EncounterDiagnosis(QualifyingEncounter).code in "Atrial Fibrillation/Flutter"
        			)
        union ( "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
        				with ["Condition": code in "Venous Thromboembolism"] VTEDiagnosis
        				such that  FHIRHelpers.ToConcept(VTEDiagnosis.clinicalStatus) in { Global."inactive", Global."remission", Global."resolved" }
          					//and VTEDiagnosis.verificationStatus = 'confirmed'
        				and Global."Normalize Interval"(VTEDiagnosis.onset) before start of QualifyingEncounter.period
          		)
    Library Name Name
    EXM108-FHIR Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery
    define "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery":
    	"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
    	with ( ["Procedure": "Hip Replacement Surgery"]
        			union ["Procedure": "Knee Replacement Surgery"] ) HipKneeProcedure
    	such that HipKneeProcedure.status = 'completed'
    	     and Global."Normalize Interval"(HipKneeProcedure.performed) starts on or before end of QualifyingEncounter.period
    Library Name Name
    EXM108-FHIR Is In Low Risk for VTE or On Anticoagulant
    define "Is In Low Risk for VTE or On Anticoagulant":
    	  ( ["Observation": "Risk for venous thromboembolism"] VTERiskAssessment
    			  where VTERiskAssessment.value in "Low Risk"
            and VTERiskAssessment.status in {'final','amended', 'corrected'}
    	  )
      union ( ["Observation": "INR"] INRLabTest
            where INRLabTest.value as Quantity > 3.0
                and INRLabTest.status in {'final','amended', 'corrected'}
            return "Observation" { id: INRLabTest.id, effective: INRLabTest.issued }
            )
      union ((( ["MedicationAdministration": "Unfractionated Heparin"] UnfractionatedHeparin
              where UnfractionatedHeparin.dosage.route in "Intravenous route"
             )
             union ["MedicationAdministration": "Direct Thrombin Inhibitor"]
             union ["MedicationAdministration": "Glycoprotein IIb/IIIa Inhibitors"] ) AnticoagulantMedication
             where AnticoagulantMedication.status = 'complete'
             return "Observation" { id: AnticoagulantMedication.id, effective: AnticoagulantMedication.effective }
          )
    Library Name Name
    EXM108-FHIR Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission
    define "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission":
     	"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
        with "Is In Low Risk for VTE or On Anticoagulant" VTERiskAssessment
        such that Global."Normalize Interval"(VTERiskAssessment.effective) starts during VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)
    Library Name Name
    EXM108-FHIR Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure
    define "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure":
     	from
       		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
       		["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
       		"Is In Low Risk for VTE or On Anticoagulant" VTERiskAssessment
    	where Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
     			and Global."Normalize Interval"(VTERiskAssessment.effective) starts during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
    	return QualifyingEncounter
    Library Name Name
    EXM108-FHIR Encounter With Low Risk for VTE or Anticoagulant Administered
    define "Encounter With Low Risk for VTE or Anticoagulant Administered":
       "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission"
       	 union "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure"
    Library Name Name
    EXM108-FHIR No VTE Prophylaxis Medication Administered or Ordered
    define "No VTE Prophylaxis Medication Administered or Ordered":
       ((	["MedicationAdministration": medication in "Low Dose Unfractionated Heparin for VTE Prophylaxis"]
         union
    	    ["MedicationAdministration": medication in "Low Molecular Weight Heparin for VTE Prophylaxis"]
         union
    	    ["MedicationAdministration": medication in "Injectable Factor Xa Inhibitor for VTE Prophylaxis"]
         union
    	    ["MedicationAdministration": medication in "Warfarin"]
           ) MedicationAdm
           where MedicationAdm.status = 'not-done'
            )
      union
    	   ((	["MedicationRequest": medication in "Low Dose Unfractionated Heparin for VTE Prophylaxis"]
      	union
      	 ["MedicationRequest": medication in "Low Molecular Weight Heparin for VTE Prophylaxis"]
        union
        	["MedicationRequest": medication in "Injectable Factor Xa Inhibitor for VTE Prophylaxis"]
        union
        	["MedicationRequest": medication in "Warfarin"]
        ) MedicationOrder
        	where	MedicationOrder.doNotPerform is true
            and MedicationOrder.status in {'completed', 'cancelled'}
            //11/5 discussion: all expressions for QI-Core must include a status.
            //Therefore, we need ServiceRequest.status = completed; and MedicationRequest.status = cancelled (or completed, since cancelled indicates it was once ordered but intentionally never filled).
            //So the not done issue is handled by ServiceRequest.doNotPerform = True  Or MedicationRequest.doNotPerform = True
        )
    Library Name Name
    EXM108-FHIR No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission
    define "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission":
       	"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
           with	"No VTE Prophylaxis Medication Administered or Ordered" NoVTEMedication
         	such that Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in "Medical Reason"
          			and Coalesce(NoVTEMedication.authoredOn, start of Global."Normalize Interval"(NoVTEMedication.effective)) during VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)
    Library Name Name
    EXM108-FHIR No VTE Prophylaxis Device Applied or Ordered
    define "No VTE Prophylaxis Device Applied or Ordered":
      ((
        ["ServiceRequest": "Venous foot pumps (VFP)"]
        union ["ServiceRequest": "Intermittent pneumatic compression devices (IPC)"]
        union ["ServiceRequest": "Graduated compression stockings (GCS)"]
        ) DeviceOrder
        where DeviceOrder.status = 'completed'
        //11/5 discussion: all expressions for QI-Core must include a status
        //ServiceRequest.status -  draft | active | suspended | completed | entered-in-error | cancelled
            and DeviceOrder.doNotPerform is true
        return {id: DeviceOrder.id, requestStatusReason: GetStatusReason(DeviceOrder), authoredOn: DeviceOrder.authoredOn}
        )
      union
        (
          ["Procedure": "Device Application"] DeviceApplied
          let DeviceNotDoneTiming: Global.GetExtension(DeviceApplied, 'qicore-recorded').value
          where (DeviceApplied.usedCode in "Intermittent pneumatic compression devices (IPC)"
                or DeviceApplied.usedCode in "Venous foot pumps (VFP)"
                or DeviceApplied.usedCode in "Graduated compression stockings (GCS)"
                )
             and  DeviceApplied.status = 'not-done'
             return {id: DeviceApplied.id, requestStatusReason: DeviceApplied.statusReason, authoredOn: DeviceNotDoneTiming}
    
        )
    Library Name Name
    EXM108-FHIR No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission
    define "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission":
      "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
      	with "No VTE Prophylaxis Device Applied or Ordered" NoVTEDevice
          such that NoVTEDevice.requestStatusReason in "Medical Reason"
            and  NoVTEDevice.authoredOn during VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)
    Library Name Name
    EXM108-FHIR No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure
    define "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure":
    	from
      		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
      		["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
      		"No VTE Prophylaxis Medication Administered or Ordered" NoVTEMedication
    	where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in "Medical Reason"
    			and AnesthesiaProcedure.status = 'completed'
    			and Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
    			and Coalesce(NoVTEMedication.authoredOn, start of Global."Normalize Interval"(NoVTEMedication.effective)) during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
      return QualifyingEncounter
    Library Name Name
    EXM108-FHIR No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure
    define "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure":
      from
      		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
      		["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
      		"No VTE Prophylaxis Device Applied or Ordered" NoVTEDevice
      where  NoVTEDevice.requestStatusReason in "Medical Reason"
          and AnesthesiaProcedure.status = 'completed'
      		and Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
          and NoVTEDevice.authoredOn during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
      return QualifyingEncounter
    Library Name Name
    EXM108-FHIR Encounter With No VTE Prophylaxis Due to Medical Reason
    define "Encounter With No VTE Prophylaxis Due to Medical Reason":
       ( "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"
         intersect "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"
       )
       union ( "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure"
           intersect "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure"
           )
    Library Name Name
    EXM108-FHIR No VTE Prophylaxis Medication or Device Due to Patient Refusal
    define "No VTE Prophylaxis Medication or Device Due to Patient Refusal":
        ( "No VTE Prophylaxis Medication Administered or Ordered" NoVTEMedication
            where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in "Patient Refusal"
        )
      union ("No VTE Prophylaxis Device Applied or Ordered" NoVTEDevice
               where NoVTEDevice.requestStatusReason in "Patient Refusal"
            )
    Library Name Name
    EXM108-FHIR No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission
    define "No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission":
     	"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
    	 with "No VTE Prophylaxis Medication or Device Due to Patient Refusal" PatientRefusal
       such that Coalesce(start of Global."Normalize Interval"(PatientRefusal.effective), PatientRefusal.authoredOn)
             during VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)
    Library Name Name
    EXM108-FHIR No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure
    define "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure":
     	from
       		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
       		["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
       		"No VTE Prophylaxis Medication or Device Due to Patient Refusal" PatientRefusal
    	where Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
     			and Coalesce(start of Global."Normalize Interval"(PatientRefusal.effective), PatientRefusal.authoredOn)
                 during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
    	return QualifyingEncounter
    Library Name Name
    EXM108-FHIR Encounter With No VTE Prophylaxis Due to Patient Refusal
    define "Encounter With No VTE Prophylaxis Due to Patient Refusal":
     "No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission"
     	union "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure"
    Library Name Name
    EXM108-FHIR Numerator
    define "Numerator":
        "Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure"
        union ( "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure"
        			  intersect ( "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE"
        						    union "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery"
        			            )
              )
        union "Encounter With Low Risk for VTE or Anticoagulant Administered"
        union "Encounter With No VTE Prophylaxis Due to Medical Reason"
        union "Encounter With No VTE Prophylaxis Due to Patient Refusal"
    Library Name Name
    EXM108-FHIR Initial Population
    define "Initial Population":
      "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
    Library Name Name
    EXM108-FHIR Denominator
    define "Denominator":
          "Initial Population"
    Library Name Name
    SupplementalDataElements SDE Payer
    define "SDE Payer":
      [Coverage: type in "Payer"] Payer
            return {
              code: Payer.type,
              period: Payer.period
            }
    Library Name Name
    EXM108-FHIR SDE Payer
    define "SDE Payer":
    	SDE."SDE Payer"
    Library Name Name
    SupplementalDataElements SDE Ethnicity
    define "SDE Ethnicity":
      (flatten (
          Patient.extension Extension
            where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'
              return Extension.extension
        )) E
          where E.url = 'ombCategory'
            or E.url = 'detailed'
          return E.value as Coding
    Library Name Name
    EXM108-FHIR SDE Ethnicity
    define "SDE Ethnicity":
      SDE."SDE Ethnicity"
    Library Name Name
    EXM108-FHIR Encounter Less Than 2 Days
    define "Encounter Less Than 2 Days":
      "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
      	where Global."LengthInDays"(QualifyingEncounter.period)< 2
    Library Name Name
    EXM108-FHIR Encounter With ICU Location Stay 1 Day or More
    define "Encounter With ICU Location Stay 1 Day or More":
      "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
        where exists ( QualifyingEncounter.location Location
        		where Global.GetLocation(Location.location).type in "Intensive Care Unit"
        			and Global."LengthInDays"(Location.period)>= 1
        			and Location.period starts during TJC."CalendarDayOfOrDayAfter"(start of QualifyingEncounter.period)
    	    )
    Library Name Name
    EXM108-FHIR Encounter With Principal Diagnosis of Mental Disorder or Stroke
    define "Encounter With Principal Diagnosis of Mental Disorder or Stroke":
      "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
        where Global."PrincipalDiagnosis"(QualifyingEncounter).code in "Mental Health Diagnoses"
            or Global."PrincipalDiagnosis"(QualifyingEncounter).code in "Hemorrhagic Stroke"
            or Global."PrincipalDiagnosis"(QualifyingEncounter).code in "Ischemic Stroke"
    Library Name Name
    EXM108-FHIR SCIP VTE Selected Surgery
    define "SCIP VTE Selected Surgery":
      (	["Procedure": "General Surgery"]
        union ["Procedure": "Gynecological Surgery"]
        union ["Procedure": "Hip Fracture Surgery"]
        union ["Procedure": "Hip Replacement Surgery"]
        union ["Procedure": "Intracranial Neurosurgery"]
        union ["Procedure": "Knee Replacement Surgery"]
        union ["Procedure": "Urological Surgery"] ) Procedure
      where Procedure.status = 'completed'
    Library Name Name
    EXM108-FHIR Encounter With Principal Procedure of SCIP VTE Selected Surgery
    /* NOTE: 2 options to express Principal Procedure to retrive "encounter Procedure as an url" and proedure "rank as extension" in R4
              VTE-1 uses Option 1 - generic extension funtion
              VTE-2 uses Option 2 - Specific extension functions
      TODO:  Mapping Table needs revision on using "Encounter.procedure.code", "Encounter.procedure.sequence"
    */
    define "Encounter With Principal Procedure of SCIP VTE Selected Surgery":
      from
          "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
          "SCIP VTE Selected Surgery" SelectedProcedure
          let EncounterProcedure: Global.GetExtension(QualifyingEncounter, 'qicore-encounter-procedure')
      where FHIRHelpers.ToInteger(Global.GetExtension(EncounterProcedure, 'rank').value as FHIR.positiveInt) = 1
          and Global.GetId(FHIRHelpers.ToString((Global.GetExtension(EncounterProcedure, 'procedure').value as FHIR.Reference).reference)) = SelectedProcedure.id
          and Global."Normalize Interval"(SelectedProcedure.performed) during QualifyingEncounter.period
    Library Name Name
    EXM108-FHIR Intervention Comfort Measures
    define "Intervention Comfort Measures":
    	(["ServiceRequest": "Comfort Measures"] P
        		where P.intent = 'order'
      )
      	union
        	(["Procedure": "Comfort Measures"] InterventionPerformed
          	where InterventionPerformed.status in {'completed', 'in-progress'})
    Library Name Name
    EXM108-FHIR Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission
    define "Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission":
    	"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
    		with "Intervention Comfort Measures" ComfortMeasure
    		such that Coalesce(start of Global."Normalize Interval"(ComfortMeasure.performed), ComfortMeasure.authoredOn) during VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)
    Library Name Name
    EXM108-FHIR Encounter With Intervention Comfort Measures on Day of or Day After Procedure
    define "Encounter With Intervention Comfort Measures on Day of or Day After Procedure":
      from
      		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
      		["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
      		"Intervention Comfort Measures" ComfortMeasure
    		where AnesthesiaProcedure.status = 'completed'
    				and Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
            and Coalesce(start of Global."Normalize Interval"(ComfortMeasure.performed), ComfortMeasure.authoredOn) during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
        return QualifyingEncounter
    Library Name Name
    EXM108-FHIR Denominator Exclusion
    define "Denominator Exclusion":
        "Encounter Less Than 2 Days"
         union "Encounter With ICU Location Stay 1 Day or More"
         union "Encounter With Principal Diagnosis of Mental Disorder or Stroke"
         union "Encounter With Principal Procedure of SCIP VTE Selected Surgery"
         union "Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission"
         union "Encounter With Intervention Comfort Measures on Day of or Day After Procedure"
    Library Name Name
    SupplementalDataElements SDE Race
    define "SDE Race":
      (flatten (
          Patient.extension Extension
            where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'
              return Extension.extension
        )) E
          where E.url = 'ombCategory'
            or E.url = 'detailed'
          return E.value as Coding
    Library Name Name
    EXM108-FHIR SDE Race
    define "SDE Race":
      SDE."SDE Race"

    Source

    {
      "resourceType" : "Measure",
      "id" : "EXM108-FHIR",
      "meta" : {
        "profile" : [
          "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure",
          "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm",
          "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm",
          "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm"
        ]
      },
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n <table class=\"grid dict\">\n \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">EXM108 - Venous Thromboembolism Prophylaxis</td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">EXM108-FHIR</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">8.2.000</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"Measure-EXM108-FHIR.html\">EXM108 - Venous Thromboembolism Prophylaxis</a></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\">\n <b>\n \n Official\n \n </b>\n </th>\n\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>108</span>\n </p>\n \n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Effective Period: </b></th>\n <td style=\"padding-left: 4px;\">2018-01-01..2018-12-31</td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Experimental: </b></th>\n <td style=\"padding-left: 4px;\">true</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">HL7 International / Clinical Quality Information</td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Description: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>This measure assesses the number of patients who received VTE prophylaxis or have documentation why no VTE prophylaxis was given the day of or the day after hospital admission or surgery end date for surgeries that start the day of or the day after hospital admission</p>\n</div></td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Use Context: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>code</b></th>\n <th><b>value</b></th>\n </tr>\n \n <tr>\n <td>venue</td>\n <td/>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Jurisdiction: </b></th>\n <td style=\"padding-left: 4px;\">US</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Topic: </b></th>\n <td style=\"padding-left: 4px;\">57024-2</td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Copyright: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>Measure specifications are in the Public Domain.</p>\n<p>LOINC(R) is a registered trademark of the Regenstrief Institute.</p>\n<p>This material contains SNOMED Clinical Terms(R) (SNOMED CT(C)) copyright 2004-2017 International Health Terminology Standards Development Organization. All rights reserved.</p>\n</div></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Disclaimer: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty</p>\n</div></td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Basis: </b></th>\n <td style=\"padding-left: 4px;\">\n Encounter\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Scoring: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n <p style=\"margin-bottom: 5px;\">\n <span>Proportion </span>\n </p>\n \n \n \n </td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Type: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n <p style=\"margin-bottom: 5px;\">\n <span>process </span>\n </p>\n \n \n \n </td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Rationale: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>Hospitalized patients at high-risk for VTE may develop an asymptomatic deep vein thrombosis (DVT), and die from pulmonary embolism (PE) even before the diagnosis is suspected. The majority of fatal events occur as sudden or abrupt death, underscoring the importance of prevention as the most critical action step for reducing death from PE (Geerts, et al, 2008).</p>\n<p>The estimated annual incidence of deep-vein thrombosis (DVT) and pulmonary embolism (PE), known collectively as venous thromboembolism (VTE), is approximately 900,000 (Geerts, et al, 2008). Approximately two-thirds of cases of DVT or PE are associated with recent hospitalization. This is consistent with the 2001 report by The Agency for Healthcare Research and Quality (AHRQ). AHRQ indicates that &quot;the appropriate application of effective preventive measures in hospitals has major potential for improving patient safety by reducing the incidence of venous thromboembolism&quot; (Shojania, 2001).</p>\n<p>Despite its proven effectiveness, rates of appropriate thromboprophylaxis remain low in both medical and surgical patients. A recent analysis from the ENDORSE survey, which evaluated prophylaxis rates in 17,084 major surgery patients, found that more than one third of patients at risk for VTE (38%) did not receive prophylaxis and that rates varied by surgery type (Cohen, et al., 2008).</p>\n<p>In a review of evidence-based patient safety practices, the Agency for Healthcare Research and Quality defined thromboprophylaxis against VTE as the &quot;number one patient safety practice&quot; for hospitalized patients (Shojania, 2001). Updated &quot;safe practices&quot; published by the National Quality Forum (NQF) recommend routine evaluation of hospitalized patients for risk of VTE and use of appropriate prophylaxis (National Quality Forum. National Voluntary Consensus Standards for Prevention and Care of Venous Thromboembolism, 2006).</p>\n<p>As noted by the ACCP, a vast number of randomized clinical trials provide irrefutable evidence that thromboprophylaxis reduces VTE events, and there are studies that have also shown that fatal PE is prevented by thromboprophylaxis (Geerts, et al. 2008).</p>\n<p>Some select surgeries have previously been monitored in the Surgical Care Improvement Project; since performance on these surgeries has achieved very high levels, they are not included in this measure.</p>\n</div></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Clinical recommendation statement: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>Failure to recognize and protect patients at risk for venous thromboembolism (VTE) increases the chances for acutely ill hospitalized patients at high risk for developing a deep vein thrombosis or dying from a pulmonary emboli. Screening all patients is the only evidence based practice in reducing incidence of disease. All hospitalized patients should be evaluated for primary VTE prophylaxis, and given appropriate prophylaxis when indicated.</p>\n</div></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Improvement Notation: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n <p style=\"margin-bottom: 5px;\">\n <span>Increased score indicates improvement </span>\n </p>\n \n \n \n </td>\n </tr>\n \n\n \n\n \n \n <tr>\n <th scope=\"row\"><b>Population Criteria: </b></th>\n <td style=\"padding-left: 4px;\">\n \n <table class=\"grid-dict\">\n \n \n <tr>\n <td>Initial Population:</td>\n\n \n \n <td>Patients age 18 and older discharged from hospital inpatient acute care without a diagnosis of venous thromboembolism (VTE) or obstetrics with a length of stay less than or equal to 120 days that ends during the measurement period</td>\n \n \n\n </tr>\n \n <tr>\n <td>Numerator:</td>\n\n \n \n <td>Patients who received VTE prophylaxis:\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date for surgeries that end the day of or the day after hospital admission\n\nPatients who have documentation of a reason why no VTE prophylaxis was given:\n- between arrival and hospital admission\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date (for surgeries that end the day of or the day after hospital admission)</td>\n \n \n\n </tr>\n \n <tr>\n <td>Denominator:</td>\n\n \n \n <td>All patients in the initial population</td>\n \n \n\n </tr>\n \n <tr>\n <td>Denominator Exclusion:</td>\n\n \n \n <td>* Patients who have a length of stay less than 2 days\n* Patients with comfort measures documented anytime between arrival and the day after hospital admission\n* Patients with comfort measures documented by the day after surgery end date for surgeries that start the day of or the day after hospital admission\n* Patients who are direct admits to intensive care unit (ICU), or transferred to ICU the day of or the day after hospital admission with ICU length of stay greater than or equal to one day\n* Patients with a principal diagnosis of mental disorders or stroke\n* Patients with a principal procedure of Surgical Care Improvement Project (SCIP) VTE selected surgeries</td>\n \n \n\n </tr>\n \n \n </table>\n \n </td>\n </tr>\n \n \n\n \n <tr>\n <th scope=\"row\"><b> Supplemental Data Elements: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n \n <p>SDE Ethnicity</p>\n \n \n \n \n \n \n \n <p>SDE Payer</p>\n \n \n \n \n \n \n \n <p>SDE Race</p>\n \n \n \n \n \n \n \n <p>SDE Sex</p>\n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Libraries: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td><a href=\"Library-EXM108-FHIR.html\">EXM108 - Venous Thromboembolism Prophylaxis Library</a></td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n\n \n \n <tr>\n <th scope=\"row\"><b>Terminology and Other Dependencies: </b></th>\n <td style=\"padding-left: 4px;\">\n \n <li><a href=\"Library-SupplementalDataElements.html\">Supplemental Data Elements Libraryversion: null2.0.0)</a></li>\n \n <li><code>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</code></li>\n \n <li><a href=\"Library-MATGlobalCommonFunctions.html\">MAT Global Common Functions FHIR Libraryversion: null5.0.000)</a></li>\n \n <li><a href=\"Library-TJCOverall.html\">TJC Overall Libraryversion: null4.0.000)</a></li>\n \n <li><a href=\"Library-VTEICU.html\">VTE ICU Libraryversion: null5.0.000)</a></li>\n \n <li><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-condition-clinical.html\">Condition Clinical Status Codes</a></li>\n \n <li><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-v3-loinc.html\">Logical Observation Identifiers, Names and Codes (LOINC)</a></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.223</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.400</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.222</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.93</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.23</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.105.12.1004</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272</code></li>\n \n <li><code>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</code></li>\n \n </td>\n </tr>\n <tr>\n <th scope=\"row\"><b>Parameters:</b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>name</b></th>\n <th><b>use</b></th>\n <th><b>min</b></th>\n <th><b>max</b></th>\n <th><b>type</b></th>\n </tr>\n \n <tr>\n <td>Measurement Period</td>\n <td>In</td>\n <td>0</td>\n <td>1</td>\n <td>Period</td>\n </tr>\n \n <tr>\n <td>SDE Sex</td>\n <td>Out</td>\n <td>0</td>\n <td>1</td>\n <td>Coding</td>\n </tr>\n \n <tr>\n <td>Numerator</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Encounter</td>\n </tr>\n \n <tr>\n <td>Denominator</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Encounter</td>\n </tr>\n \n <tr>\n <td>SDE Payer</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Resource</td>\n </tr>\n \n <tr>\n <td>Initial Population</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Encounter</td>\n </tr>\n \n <tr>\n <td>SDE Ethnicity</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Coding</td>\n </tr>\n \n <tr>\n <td>Denominator Exclusion</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Resource</td>\n </tr>\n \n <tr>\n <td>SDE Race</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Coding</td>\n </tr>\n \n </table>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\"><b>DataRequirements:</b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>Resource Type</b></th>\n <th><b>Resource Elements</b></th>\n <th><b>Valueset Name</b></th>\n <th><b>Valueset</b></th>\n </tr>\n \n <tr>\n <td>Patient(<a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a>)</td>\n <td>\n \n extension\n \n value\n \n birthDate\n \n url\n \n </td>\n <td>\n \n </td>\n <td/>\n </tr>\n \n <tr>\n <td>Encounter(<a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>)</td>\n <td>\n \n period\n \n type\n \n </td>\n <td>\n \n \n Emergency Department Visit\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</code></td>\n </tr>\n \n <tr>\n <td>Encounter(<a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>)</td>\n <td>\n \n period\n \n type\n \n </td>\n <td>\n \n \n Observation Services\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</code></td>\n </tr>\n \n <tr>\n <td>Encounter(<a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>)</td>\n <td>\n \n period\n \n type\n \n status\n \n </td>\n <td>\n \n \n Encounter Inpatient\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</code></td>\n </tr>\n \n <tr>\n <td>MedicationAdministration(<a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>)</td>\n <td>\n \n dosage.route\n \n dosage\n \n medication\n \n </td>\n <td>\n \n \n Unfractionated Heparin\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218</code></td>\n </tr>\n \n <tr>\n <td>MedicationAdministration(<a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>)</td>\n <td>\n \n medication\n \n </td>\n <td>\n \n \n Direct Thrombin Inhibitor\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205</code></td>\n </tr>\n \n <tr>\n <td>MedicationAdministration(<a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>)</td>\n <td>\n \n medication\n \n </td>\n <td>\n \n \n Glycoprotein IIb/IIIa Inhibitors\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41</code></td>\n </tr>\n \n <tr>\n <td>MedicationAdministration(<a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>)</td>\n <td>\n \n dosage.route\n \n dosage\n \n medication\n \n status\n \n </td>\n <td>\n \n \n Low Dose Unfractionated Heparin for VTE Prophylaxis\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</code></td>\n </tr>\n \n <tr>\n <td>MedicationAdministration(<a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>)</td>\n <td>\n \n medication\n \n status\n \n </td>\n <td>\n \n \n Low Molecular Weight Heparin for VTE Prophylaxis\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</code></td>\n </tr>\n \n <tr>\n <td>MedicationAdministration(<a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>)</td>\n <td>\n \n medication\n \n status\n \n </td>\n <td>\n \n \n Injectable Factor Xa Inhibitor for VTE Prophylaxis\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</code></td>\n </tr>\n \n <tr>\n <td>MedicationAdministration(<a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>)</td>\n <td>\n \n medication\n \n status\n \n </td>\n <td>\n \n \n Warfarin\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</code></td>\n </tr>\n \n <tr>\n <td>MedicationAdministration(<a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>)</td>\n <td>\n \n effective\n \n medication\n \n status\n \n </td>\n <td>\n \n \n Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134</code></td>\n </tr>\n \n <tr>\n <td>MedicationRequest(<a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>)</td>\n <td>\n \n medication\n \n </td>\n <td>\n \n \n Low Dose Unfractionated Heparin for VTE Prophylaxis\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</code></td>\n </tr>\n \n <tr>\n <td>MedicationRequest(<a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>)</td>\n <td>\n \n medication\n \n </td>\n <td>\n \n \n Low Molecular Weight Heparin for VTE Prophylaxis\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</code></td>\n </tr>\n \n <tr>\n <td>MedicationRequest(<a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>)</td>\n <td>\n \n medication\n \n </td>\n <td>\n \n \n Injectable Factor Xa Inhibitor for VTE Prophylaxis\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</code></td>\n </tr>\n \n <tr>\n <td>MedicationRequest(<a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>)</td>\n <td>\n \n medication\n \n </td>\n <td>\n \n \n Warfarin\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</code></td>\n </tr>\n \n <tr>\n <td>ServiceRequest(<a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>)</td>\n <td>\n \n code\n \n </td>\n <td>\n \n \n Venous foot pumps (VFP)\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230</code></td>\n </tr>\n \n <tr>\n <td>ServiceRequest(<a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>)</td>\n <td>\n \n code\n \n </td>\n <td>\n \n \n Intermittent pneumatic compression devices (IPC)\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214</code></td>\n </tr>\n \n <tr>\n <td>ServiceRequest(<a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>)</td>\n <td>\n \n code\n \n </td>\n <td>\n \n \n Graduated compression stockings (GCS)\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256</code></td>\n </tr>\n \n <tr>\n <td>ServiceRequest(<a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>)</td>\n <td>\n \n code\n \n intent\n \n </td>\n <td>\n \n \n Comfort Measures\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</code></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>)</td>\n <td>\n \n code\n \n </td>\n <td>\n \n \n General Surgery\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255</code></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>)</td>\n <td>\n \n code\n \n </td>\n <td>\n \n \n Gynecological Surgery\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257</code></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>)</td>\n <td>\n \n code\n \n </td>\n <td>\n \n \n Hip Fracture Surgery\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258</code></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>)</td>\n <td>\n \n code\n \n </td>\n <td>\n \n \n Intracranial Neurosurgery\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260</code></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>)</td>\n <td>\n \n code\n \n </td>\n <td>\n \n \n Urological Surgery\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272</code></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>)</td>\n <td>\n \n code\n \n status\n \n </td>\n <td>\n \n \n Comfort Measures\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</code></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>)</td>\n <td>\n \n code\n \n </td>\n <td>\n \n \n Hip Replacement Surgery\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259</code></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>)</td>\n <td>\n \n code\n \n </td>\n <td>\n \n \n Knee Replacement Surgery\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261</code></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>)</td>\n <td>\n \n code\n \n statusReason\n \n usedCode\n \n id\n \n status\n \n </td>\n <td>\n \n \n Device Application\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48</code></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>)</td>\n <td>\n \n code\n \n performed\n \n status\n \n </td>\n <td>\n \n \n General or Neuraxial Anesthesia\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</code></td>\n </tr>\n \n <tr>\n <td>Condition(<a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>)</td>\n <td>\n \n id\n \n </td>\n <td>\n \n </td>\n <td/>\n </tr>\n \n <tr>\n <td>Condition(<a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>)</td>\n <td>\n \n code\n \n clinicalStatus\n \n onset\n \n </td>\n <td>\n \n \n Atrial Fibrillation/Flutter\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202</code></td>\n </tr>\n \n <tr>\n <td>Condition(<a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>)</td>\n <td>\n \n code\n \n clinicalStatus\n \n onset\n \n </td>\n <td>\n \n \n Venous Thromboembolism\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279</code></td>\n </tr>\n \n <tr>\n <td>Observation(<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td>\n <td>\n \n code\n \n value\n \n status\n \n </td>\n <td>\n \n </td>\n <td/>\n </tr>\n \n <tr>\n <td>Observation(<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td>\n <td>\n \n code\n \n id\n \n issued\n \n value\n \n status\n \n </td>\n <td>\n \n \n INR\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213</code></td>\n </tr>\n \n <tr>\n <td>Coverage(<a href=\"http://hl7.org/fhir/R4/coverage.html\">Coverage</a>)</td>\n <td>\n \n period\n \n type\n \n </td>\n <td>\n \n \n Payer\n \n \n </td>\n <td><code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</code></td>\n </tr>\n \n <tr>\n <td>Location(<a href=\"http://hl7.org/fhir/R4/location.html\">Location</a>)</td>\n <td>\n \n id\n \n </td>\n <td>\n \n </td>\n <td/>\n </tr>\n \n </table>\n </td>\n </tr>\n\n \n\n \n <tr>\n <th scope=\"row\"><b>Direct Reference Codes:</b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>display</b></th>\n <th><b>code</b></th>\n <th><b>system</b></th>\n </tr>\n \n <tr>\n <td/>\n <td>active</td>\n <td><a href=\"http://hl7.org/fhir/R4/codesystem-condition-clinical.html\">http://terminology.hl7.org/CodeSystem/condition-clinical</a></td>\n </tr>\n \n <tr>\n <td/>\n <td>recurrence</td>\n <td><a href=\"http://hl7.org/fhir/R4/codesystem-condition-clinical.html\">http://terminology.hl7.org/CodeSystem/condition-clinical</a></td>\n </tr>\n \n <tr>\n <td/>\n <td>relapse</td>\n <td><a href=\"http://hl7.org/fhir/R4/codesystem-condition-clinical.html\">http://terminology.hl7.org/CodeSystem/condition-clinical</a></td>\n </tr>\n \n <tr>\n <td/>\n <td>inactive</td>\n <td><a href=\"http://hl7.org/fhir/R4/codesystem-condition-clinical.html\">http://terminology.hl7.org/CodeSystem/condition-clinical</a></td>\n </tr>\n \n <tr>\n <td/>\n <td>remission</td>\n <td><a href=\"http://hl7.org/fhir/R4/codesystem-condition-clinical.html\">http://terminology.hl7.org/CodeSystem/condition-clinical</a></td>\n </tr>\n \n <tr>\n <td/>\n <td>resolved</td>\n <td><a href=\"http://hl7.org/fhir/R4/codesystem-condition-clinical.html\">http://terminology.hl7.org/CodeSystem/condition-clinical</a></td>\n </tr>\n \n <tr>\n <td>Risk for venous thromboembolism</td>\n <td>72136-5</td>\n <td><a href=\"http://terminology.hl7.org/6.0.2/CodeSystem-v3-loinc.html\">http://loinc.org</a></td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Logic Definitions:</b></th>\n <td style=\"padding-left: 4px;\">\n \n <table class=\"grid-dict\">\n <tr>\n <th><b>Group</b></th>\n <th><b>Scoring</b></th>\n <th><b>Population Criteria</b></th>\n <th><b>Expression</b></th>\n </tr>\n <tr>\n \n <td> </td>\n <td colspan=\"3\" style=\"padding-left: 4px;\">\n \n\n \n\n \n <b>Measure scoring:</b>\n \n <p style=\"margin-bottom: 5px;\">\n <span>Proportion</span>\n </p>\n \n \n\n \n\n \n\n \n\n \n\n \n\n \n\n </td>\n \n <tr>\n <td/>\n <td/>\n <td>Initial Population</td>\n <td>\n \n <pre><code class=\"language-cql\">define &quot;Initial Population&quot;:\n &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot;</code></pre>\n \n </td>\n </tr>\n \n <tr>\n <td/>\n <td/>\n <td>Numerator</td>\n <td>\n \n <pre><code class=\"language-cql\">define &quot;Numerator&quot;:\n &quot;Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure&quot;\n union ( &quot;Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure&quot;\n \t\t\t intersect ( &quot;Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE&quot;\n \t\t\t\t\t\t union &quot;Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery&quot;\n \t\t\t )\n )\n union &quot;Encounter With Low Risk for VTE or Anticoagulant Administered&quot;\n union &quot;Encounter With No VTE Prophylaxis Due to Medical Reason&quot;\n union &quot;Encounter With No VTE Prophylaxis Due to Patient Refusal&quot;</code></pre>\n \n </td>\n </tr>\n \n <tr>\n <td/>\n <td/>\n <td>Denominator</td>\n <td>\n \n <pre><code class=\"language-cql\">define &quot;Denominator&quot;:\n &quot;Initial Population&quot;</code></pre>\n \n </td>\n </tr>\n \n <tr>\n <td/>\n <td/>\n <td>Denominator Exclusion</td>\n <td>\n \n <pre><code class=\"language-cql\">define &quot;Denominator Exclusion&quot;:\n &quot;Encounter Less Than 2 Days&quot;\n union &quot;Encounter With ICU Location Stay 1 Day or More&quot;\n union &quot;Encounter With Principal Diagnosis of Mental Disorder or Stroke&quot;\n union &quot;Encounter With Principal Procedure of SCIP VTE Selected Surgery&quot;\n union &quot;Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission&quot;\n union &quot;Encounter With Intervention Comfort Measures on Day of or Day After Procedure&quot;</code></pre>\n \n </td>\n </tr>\n \n \n \n </tr>\n </table>\n \n\n <table class=\"grid-dict\">\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>SupplementalDataElements</td>\n \n \n <td>SDE Sex</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Sex&quot;:\n case\n when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n else null\n end</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>SDE Sex</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Sex&quot;:\n\tSDE.&quot;SDE Sex&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>MATGlobalCommonFunctions</td>\n \n \n <td>Inpatient Encounter</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Inpatient Encounter&quot;:\n\t[Encounter: &quot;Encounter Inpatient&quot;] EncounterInpatient\n\t\twhere EncounterInpatient.status = 'finished'\n\t\t and &quot;LengthInDays&quot;(EncounterInpatient.period) &lt;= 120\n\t\t\tand EncounterInpatient.period ends during &quot;Measurement Period&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Admission Without VTE or Obstetrical Conditions</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Admission Without VTE or Obstetrical Conditions&quot;:\n\t \tGlobal.&quot;Inpatient Encounter&quot; InpatientEncounter\n\t\t where not (exists (Global.EncounterDiagnosis(InpatientEncounter)) EncounterDiagnosis\n where (EncounterDiagnosis.code in &quot;Obstetrics&quot;\n\t\t\t\t\t\t\t\tor EncounterDiagnosis.code in &quot;Venous Thromboembolism&quot;\n\t\t\t\t\t\t\t\tor EncounterDiagnosis.code in &quot;Obstetrics VTE&quot;\n\t\t\t )\n )</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">// Note: added FHIRHelpers.ToDate() in R4\ndefine &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot;:\n ( Global.&quot;Inpatient Encounter&quot; InpatientEncounter\n \t\twith [&quot;Patient&quot;] BirthDate\n \t\t\tsuch that Global.&quot;CalendarAgeInYearsAt&quot;(FHIRHelpers.ToDate(BirthDate.birthDate), start of InpatientEncounter.period) &gt;= 18\n )\n intersect &quot;Admission Without VTE or Obstetrical Conditions&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108</td>\n \n \n <td>VTE Prophylaxis by Medication Administered or Device Applied</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">// 10/29: Replaced DeviceUseStatement with Procedure with a new value set and procedure.usdCode for specifying devices\ndefine &quot;VTE Prophylaxis by Medication Administered or Device Applied&quot;:\n ( [&quot;MedicationAdministration&quot;: medication in &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;] VTEMedication\n where VTEMedication.status ='completed'\n\t\t\t and VTEMedication.dosage.route in &quot;Subcutaneous route&quot;\n )\n union ([&quot;MedicationAdministration&quot;: medication in &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;] LMWH where LMWH.status = 'completed')\n union ([&quot;MedicationAdministration&quot;: medication in &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;] FactorXa where FactorXa.status = 'completed')\n union ([&quot;MedicationAdministration&quot;: medication in &quot;Warfarin&quot;] Warfarin where Warfarin.status = 'completed')\n union (\n [&quot;Procedure&quot;: &quot;Device Application&quot;] DeviceApplied\n where DeviceApplied.status = 'complete'\n and (DeviceApplied.usedCode in &quot;Intermittent pneumatic compression devices (IPC)&quot;\n or DeviceApplied.usedCode in&quot;Venous foot pumps (VFP)&quot;\n or DeviceApplied.usedCode in &quot;Graduated compression stockings (GCS)&quot;\n )\n )</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure&quot;:\n \t( from\n \t\t\t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,\n \t\t\t&quot;VTE Prophylaxis by Medication Administered or Device Applied&quot; VTEProphylaxis\n \t\twhere Coalesce(Global.&quot;Normalize Interval&quot;(VTEProphylaxis.effective), Global.&quot;Normalize Interval&quot;(VTEProphylaxis.performed)) starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(start of QualifyingEncounter.period)\n \t\treturn QualifyingEncounter\n \t)\n \tunion (\n from\n \t\t\t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,\n \t\t\t[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,\n \t\t\t&quot;VTE Prophylaxis by Medication Administered or Device Applied&quot; VTEProphylaxis\n\t\t\twhere Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n\t\t\t\tand Coalesce(Global.&quot;Normalize Interval&quot;(VTEProphylaxis.effective), Global.&quot;Normalize Interval&quot;(VTEProphylaxis.performed)) starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))\n\t\t\treturn QualifyingEncounter\n\t)</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure&quot;:\n\t( from\n \t\t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,\n \t\t\t[&quot;MedicationAdministration&quot;: medication in &quot;Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment&quot;] FactorXaMedication\n where FactorXaMedication.status = 'completed'\n and Global.&quot;Normalize Interval&quot;(FactorXaMedication.effective) starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(start of QualifyingEncounter.period)\n return QualifyingEncounter\n )\n union ( from\n \t\t\t\t &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,\n \t\t\t\t[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,\n \t\t\t\t[&quot;MedicationAdministration&quot;: medication in &quot;Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment&quot;] FactorXaMedication\n \t\t\twhere FactorXaMedication.status = 'completed'\n and AnesthesiaProcedure.status = 'completed'\n \t\t\t and Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n \t\t\t\t\tand Global.&quot;Normalize Interval&quot;(FactorXaMedication.effective) starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))\n \t\t\treturn QualifyingEncounter\n \t\t)</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">/*NOTE: Feedback at Digitial Quality Summit 2019 indicates verificationStatus may be difficult for implementers to retrieve\n both condition.clinicalStatus and condition.verificationStatus = 'confirmed'\n*/\ndefine &quot;Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE&quot;:\n\t( &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n\t\twith [&quot;Condition&quot;: code in &quot;Atrial Fibrillation/Flutter&quot;] AtrialFibrillation\n\t\tsuch that FHIRHelpers.ToConcept(AtrialFibrillation.clinicalStatus) in { Global.&quot;active&quot;, Global.&quot;recurrence&quot;, Global.&quot;relapse&quot; }\n\t\t\tand Global.&quot;Normalize Interval&quot;(AtrialFibrillation.onset) starts on or before end of QualifyingEncounter.period\n )\n union ( &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n \t\t\t\twhere Global.EncounterDiagnosis(QualifyingEncounter).code in &quot;Atrial Fibrillation/Flutter&quot;\n \t\t\t)\n union ( &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n \t\t\t\twith [&quot;Condition&quot;: code in &quot;Venous Thromboembolism&quot;] VTEDiagnosis\n \t\t\t\tsuch that FHIRHelpers.ToConcept(VTEDiagnosis.clinicalStatus) in { Global.&quot;inactive&quot;, Global.&quot;remission&quot;, Global.&quot;resolved&quot; }\n \t\t\t\t\t//and VTEDiagnosis.verificationStatus = 'confirmed'\n \t\t\t\tand Global.&quot;Normalize Interval&quot;(VTEDiagnosis.onset) before start of QualifyingEncounter.period\n \t\t)</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery&quot;:\n\t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n\twith ( [&quot;Procedure&quot;: &quot;Hip Replacement Surgery&quot;]\n \t\t\tunion [&quot;Procedure&quot;: &quot;Knee Replacement Surgery&quot;] ) HipKneeProcedure\n\tsuch that HipKneeProcedure.status = 'completed'\n\t and Global.&quot;Normalize Interval&quot;(HipKneeProcedure.performed) starts on or before end of QualifyingEncounter.period</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Is In Low Risk for VTE or On Anticoagulant</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Is In Low Risk for VTE or On Anticoagulant&quot;:\n\t ( [&quot;Observation&quot;: &quot;Risk for venous thromboembolism&quot;] VTERiskAssessment\n\t\t\t where VTERiskAssessment.value in &quot;Low Risk&quot;\n and VTERiskAssessment.status in {'final','amended', 'corrected'}\n\t )\n union ( [&quot;Observation&quot;: &quot;INR&quot;] INRLabTest\n where INRLabTest.value as Quantity &gt; 3.0\n and INRLabTest.status in {'final','amended', 'corrected'}\n return &quot;Observation&quot; { id: INRLabTest.id, effective: INRLabTest.issued }\n )\n union ((( [&quot;MedicationAdministration&quot;: &quot;Unfractionated Heparin&quot;] UnfractionatedHeparin\n where UnfractionatedHeparin.dosage.route in &quot;Intravenous route&quot;\n )\n union [&quot;MedicationAdministration&quot;: &quot;Direct Thrombin Inhibitor&quot;]\n union [&quot;MedicationAdministration&quot;: &quot;Glycoprotein IIb/IIIa Inhibitors&quot;] ) AnticoagulantMedication\n where AnticoagulantMedication.status = 'complete'\n return &quot;Observation&quot; { id: AnticoagulantMedication.id, effective: AnticoagulantMedication.effective }\n )</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission&quot;:\n \t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n with &quot;Is In Low Risk for VTE or On Anticoagulant&quot; VTERiskAssessment\n such that Global.&quot;Normalize Interval&quot;(VTERiskAssessment.effective) starts during VTEICU.&quot;FromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(QualifyingEncounter)</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure&quot;:\n \tfrom\n \t\t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,\n \t\t[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,\n \t\t&quot;Is In Low Risk for VTE or On Anticoagulant&quot; VTERiskAssessment\n\twhere Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n \t\t\tand Global.&quot;Normalize Interval&quot;(VTERiskAssessment.effective) starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))\n\treturn QualifyingEncounter</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With Low Risk for VTE or Anticoagulant Administered</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter With Low Risk for VTE or Anticoagulant Administered&quot;:\n &quot;Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission&quot;\n \t union &quot;Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>No VTE Prophylaxis Medication Administered or Ordered</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;No VTE Prophylaxis Medication Administered or Ordered&quot;:\n ((\t[&quot;MedicationAdministration&quot;: medication in &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;]\n union\n\t [&quot;MedicationAdministration&quot;: medication in &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;]\n union\n\t [&quot;MedicationAdministration&quot;: medication in &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;]\n union\n\t [&quot;MedicationAdministration&quot;: medication in &quot;Warfarin&quot;]\n ) MedicationAdm\n where MedicationAdm.status = 'not-done'\n )\n union\n\t ((\t[&quot;MedicationRequest&quot;: medication in &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;]\n \tunion\n \t [&quot;MedicationRequest&quot;: medication in &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;]\n union\n \t[&quot;MedicationRequest&quot;: medication in &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;]\n union\n \t[&quot;MedicationRequest&quot;: medication in &quot;Warfarin&quot;]\n ) MedicationOrder\n \twhere\tMedicationOrder.doNotPerform is true\n and MedicationOrder.status in {'completed', 'cancelled'}\n //11/5 discussion: all expressions for QI-Core must include a status.\n //Therefore, we need ServiceRequest.status = completed; and MedicationRequest.status = cancelled (or completed, since cancelled indicates it was once ordered but intentionally never filled).\n //So the not done issue is handled by ServiceRequest.doNotPerform = True Or MedicationRequest.doNotPerform = True\n )</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission&quot;:\n \t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n with\t&quot;No VTE Prophylaxis Medication Administered or Ordered&quot; NoVTEMedication\n \tsuch that Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in &quot;Medical Reason&quot;\n \t\t\tand Coalesce(NoVTEMedication.authoredOn, start of Global.&quot;Normalize Interval&quot;(NoVTEMedication.effective)) during VTEICU.&quot;FromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(QualifyingEncounter)</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>No VTE Prophylaxis Device Applied or Ordered</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;No VTE Prophylaxis Device Applied or Ordered&quot;:\n ((\n [&quot;ServiceRequest&quot;: &quot;Venous foot pumps (VFP)&quot;]\n union [&quot;ServiceRequest&quot;: &quot;Intermittent pneumatic compression devices (IPC)&quot;]\n union [&quot;ServiceRequest&quot;: &quot;Graduated compression stockings (GCS)&quot;]\n ) DeviceOrder\n where DeviceOrder.status = 'completed'\n //11/5 discussion: all expressions for QI-Core must include a status\n //ServiceRequest.status - draft | active | suspended | completed | entered-in-error | cancelled\n and DeviceOrder.doNotPerform is true\n return {id: DeviceOrder.id, requestStatusReason: GetStatusReason(DeviceOrder), authoredOn: DeviceOrder.authoredOn}\n )\n union\n (\n [&quot;Procedure&quot;: &quot;Device Application&quot;] DeviceApplied\n let DeviceNotDoneTiming: Global.GetExtension(DeviceApplied, 'qicore-recorded').value\n where (DeviceApplied.usedCode in &quot;Intermittent pneumatic compression devices (IPC)&quot;\n or DeviceApplied.usedCode in &quot;Venous foot pumps (VFP)&quot;\n or DeviceApplied.usedCode in &quot;Graduated compression stockings (GCS)&quot;\n )\n and DeviceApplied.status = 'not-done'\n return {id: DeviceApplied.id, requestStatusReason: DeviceApplied.statusReason, authoredOn: DeviceNotDoneTiming}\n\n )</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission&quot;:\n &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n \twith &quot;No VTE Prophylaxis Device Applied or Ordered&quot; NoVTEDevice\n such that NoVTEDevice.requestStatusReason in &quot;Medical Reason&quot;\n and NoVTEDevice.authoredOn during VTEICU.&quot;FromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(QualifyingEncounter)</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure&quot;:\n\tfrom\n \t\t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,\n \t\t[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,\n \t\t&quot;No VTE Prophylaxis Medication Administered or Ordered&quot; NoVTEMedication\n\twhere Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in &quot;Medical Reason&quot;\n\t\t\tand AnesthesiaProcedure.status = 'completed'\n\t\t\tand Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n\t\t\tand Coalesce(NoVTEMedication.authoredOn, start of Global.&quot;Normalize Interval&quot;(NoVTEMedication.effective)) during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))\n return QualifyingEncounter</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure&quot;:\n from\n \t\t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,\n \t\t[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,\n \t\t&quot;No VTE Prophylaxis Device Applied or Ordered&quot; NoVTEDevice\n where NoVTEDevice.requestStatusReason in &quot;Medical Reason&quot;\n and AnesthesiaProcedure.status = 'completed'\n \t\tand Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n and NoVTEDevice.authoredOn during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))\n return QualifyingEncounter</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With No VTE Prophylaxis Due to Medical Reason</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter With No VTE Prophylaxis Due to Medical Reason&quot;:\n ( &quot;No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission&quot;\n intersect &quot;No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission&quot;\n )\n union ( &quot;No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure&quot;\n intersect &quot;No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure&quot;\n )</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>No VTE Prophylaxis Medication or Device Due to Patient Refusal</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;No VTE Prophylaxis Medication or Device Due to Patient Refusal&quot;:\n ( &quot;No VTE Prophylaxis Medication Administered or Ordered&quot; NoVTEMedication\n where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in &quot;Patient Refusal&quot;\n )\n union (&quot;No VTE Prophylaxis Device Applied or Ordered&quot; NoVTEDevice\n where NoVTEDevice.requestStatusReason in &quot;Patient Refusal&quot;\n )</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission&quot;:\n \t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n\t with &quot;No VTE Prophylaxis Medication or Device Due to Patient Refusal&quot; PatientRefusal\n such that Coalesce(start of Global.&quot;Normalize Interval&quot;(PatientRefusal.effective), PatientRefusal.authoredOn)\n during VTEICU.&quot;FromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(QualifyingEncounter)</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure&quot;:\n \tfrom\n \t\t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,\n \t\t[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,\n \t\t&quot;No VTE Prophylaxis Medication or Device Due to Patient Refusal&quot; PatientRefusal\n\twhere Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n \t\t\tand Coalesce(start of Global.&quot;Normalize Interval&quot;(PatientRefusal.effective), PatientRefusal.authoredOn)\n during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))\n\treturn QualifyingEncounter</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With No VTE Prophylaxis Due to Patient Refusal</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter With No VTE Prophylaxis Due to Patient Refusal&quot;:\n &quot;No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission&quot;\n \tunion &quot;No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Numerator</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Numerator&quot;:\n &quot;Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure&quot;\n union ( &quot;Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure&quot;\n \t\t\t intersect ( &quot;Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE&quot;\n \t\t\t\t\t\t union &quot;Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery&quot;\n \t\t\t )\n )\n union &quot;Encounter With Low Risk for VTE or Anticoagulant Administered&quot;\n union &quot;Encounter With No VTE Prophylaxis Due to Medical Reason&quot;\n union &quot;Encounter With No VTE Prophylaxis Due to Patient Refusal&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Initial Population</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Initial Population&quot;:\n &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Denominator</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Denominator&quot;:\n &quot;Initial Population&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>SupplementalDataElements</td>\n \n \n <td>SDE Payer</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Payer&quot;:\n [Coverage: type in &quot;Payer&quot;] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>SDE Payer</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Payer&quot;:\n\tSDE.&quot;SDE Payer&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>SupplementalDataElements</td>\n \n \n <td>SDE Ethnicity</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Ethnicity&quot;:\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>SDE Ethnicity</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Ethnicity&quot;:\n SDE.&quot;SDE Ethnicity&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter Less Than 2 Days</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter Less Than 2 Days&quot;:\n &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n \twhere Global.&quot;LengthInDays&quot;(QualifyingEncounter.period)&lt; 2</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With ICU Location Stay 1 Day or More</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter With ICU Location Stay 1 Day or More&quot;:\n &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n where exists ( QualifyingEncounter.location Location\n \t\twhere Global.GetLocation(Location.location).type in &quot;Intensive Care Unit&quot;\n \t\t\tand Global.&quot;LengthInDays&quot;(Location.period)&gt;= 1\n \t\t\tand Location.period starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(start of QualifyingEncounter.period)\n\t )</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With Principal Diagnosis of Mental Disorder or Stroke</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter With Principal Diagnosis of Mental Disorder or Stroke&quot;:\n &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n where Global.&quot;PrincipalDiagnosis&quot;(QualifyingEncounter).code in &quot;Mental Health Diagnoses&quot;\n or Global.&quot;PrincipalDiagnosis&quot;(QualifyingEncounter).code in &quot;Hemorrhagic Stroke&quot;\n or Global.&quot;PrincipalDiagnosis&quot;(QualifyingEncounter).code in &quot;Ischemic Stroke&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>SCIP VTE Selected Surgery</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;SCIP VTE Selected Surgery&quot;:\n (\t[&quot;Procedure&quot;: &quot;General Surgery&quot;]\n union [&quot;Procedure&quot;: &quot;Gynecological Surgery&quot;]\n union [&quot;Procedure&quot;: &quot;Hip Fracture Surgery&quot;]\n union [&quot;Procedure&quot;: &quot;Hip Replacement Surgery&quot;]\n union [&quot;Procedure&quot;: &quot;Intracranial Neurosurgery&quot;]\n union [&quot;Procedure&quot;: &quot;Knee Replacement Surgery&quot;]\n union [&quot;Procedure&quot;: &quot;Urological Surgery&quot;] ) Procedure\n where Procedure.status = 'completed'</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With Principal Procedure of SCIP VTE Selected Surgery</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">/* NOTE: 2 options to express Principal Procedure to retrive &quot;encounter Procedure as an url&quot; and proedure &quot;rank as extension&quot; in R4\n VTE-1 uses Option 1 - generic extension funtion\n VTE-2 uses Option 2 - Specific extension functions\n TODO: Mapping Table needs revision on using &quot;Encounter.procedure.code&quot;, &quot;Encounter.procedure.sequence&quot;\n*/\ndefine &quot;Encounter With Principal Procedure of SCIP VTE Selected Surgery&quot;:\n from\n &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,\n &quot;SCIP VTE Selected Surgery&quot; SelectedProcedure\n let EncounterProcedure: Global.GetExtension(QualifyingEncounter, 'qicore-encounter-procedure')\n where FHIRHelpers.ToInteger(Global.GetExtension(EncounterProcedure, 'rank').value as FHIR.positiveInt) = 1\n and Global.GetId(FHIRHelpers.ToString((Global.GetExtension(EncounterProcedure, 'procedure').value as FHIR.Reference).reference)) = SelectedProcedure.id\n and Global.&quot;Normalize Interval&quot;(SelectedProcedure.performed) during QualifyingEncounter.period</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Intervention Comfort Measures</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Intervention Comfort Measures&quot;:\n\t([&quot;ServiceRequest&quot;: &quot;Comfort Measures&quot;] P\n \t\twhere P.intent = 'order'\n )\n \tunion\n \t([&quot;Procedure&quot;: &quot;Comfort Measures&quot;] InterventionPerformed\n \twhere InterventionPerformed.status in {'completed', 'in-progress'})</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission&quot;:\n\t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter\n\t\twith &quot;Intervention Comfort Measures&quot; ComfortMeasure\n\t\tsuch that Coalesce(start of Global.&quot;Normalize Interval&quot;(ComfortMeasure.performed), ComfortMeasure.authoredOn) during VTEICU.&quot;FromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(QualifyingEncounter)</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Encounter With Intervention Comfort Measures on Day of or Day After Procedure</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Encounter With Intervention Comfort Measures on Day of or Day After Procedure&quot;:\n from\n \t\t&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,\n \t\t[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,\n \t\t&quot;Intervention Comfort Measures&quot; ComfortMeasure\n\t\twhere AnesthesiaProcedure.status = 'completed'\n\t\t\t\tand Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n and Coalesce(start of Global.&quot;Normalize Interval&quot;(ComfortMeasure.performed), ComfortMeasure.authoredOn) during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))\n return QualifyingEncounter</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>Denominator Exclusion</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;Denominator Exclusion&quot;:\n &quot;Encounter Less Than 2 Days&quot;\n union &quot;Encounter With ICU Location Stay 1 Day or More&quot;\n union &quot;Encounter With Principal Diagnosis of Mental Disorder or Stroke&quot;\n union &quot;Encounter With Principal Procedure of SCIP VTE Selected Surgery&quot;\n union &quot;Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission&quot;\n union &quot;Encounter With Intervention Comfort Measures on Day of or Day After Procedure&quot;</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>SupplementalDataElements</td>\n \n \n <td>SDE Race</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Race&quot;:\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>EXM108-FHIR</td>\n \n \n <td>SDE Race</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Race&quot;:\n SDE.&quot;SDE Race&quot;</code></pre>\n </td>\n \n </tr>\n \n </table>\n </td>\n </tr>\n \n \n \n\n </table>\n</div>\n</div>"
      },
      "contained" : [
        {
          "resourceType" : "Library",
          "id" : "effective-data-requirements-exm108",
          "meta" : {
            "profile" : [
              "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary"
            ]
          },
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code" : "active"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code" : "recurrence"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code" : "relapse"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code" : "inactive"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code" : "remission"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code" : "resolved"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://loinc.org",
                "code" : "72136-5",
                "display" : "Risk for venous thromboembolism"
              }
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "SupplementalDataElements"
                },
                {
                  "url" : "name",
                  "valueString" : "SDE Sex"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"SDE Sex\":\n case\n when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n else null\n end"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 0
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "SDE Sex"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"SDE Sex\":\n\tSDE.\"SDE Sex\""
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "MATGlobalCommonFunctions"
                },
                {
                  "url" : "name",
                  "valueString" : "Inpatient Encounter"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Inpatient Encounter\":\n\t[Encounter: \"Encounter Inpatient\"] EncounterInpatient\n\t\twhere EncounterInpatient.status = 'finished'\n\t\t and \"LengthInDays\"(EncounterInpatient.period) <= 120\n\t\t\tand EncounterInpatient.period ends during \"Measurement Period\""
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 2
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Admission Without VTE or Obstetrical Conditions"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Admission Without VTE or Obstetrical Conditions\":\n\t \tGlobal.\"Inpatient Encounter\" InpatientEncounter\n\t\t where not (exists (Global.EncounterDiagnosis(InpatientEncounter)) EncounterDiagnosis\n where (EncounterDiagnosis.code in \"Obstetrics\"\n\t\t\t\t\t\t\t\tor EncounterDiagnosis.code in \"Venous Thromboembolism\"\n\t\t\t\t\t\t\t\tor EncounterDiagnosis.code in \"Obstetrics VTE\"\n\t\t\t )\n )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 3
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
                },
                {
                  "url" : "statement",
                  "valueString" : "// Note: added FHIRHelpers.ToDate() in R4\ndefine \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\":\n ( Global.\"Inpatient Encounter\" InpatientEncounter\n \t\twith [\"Patient\"] BirthDate\n \t\t\tsuch that Global.\"CalendarAgeInYearsAt\"(FHIRHelpers.ToDate(BirthDate.birthDate), start of InpatientEncounter.period) >= 18\n )\n intersect \"Admission Without VTE or Obstetrical Conditions\""
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 4
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108"
                },
                {
                  "url" : "name",
                  "valueString" : "VTE Prophylaxis by Medication Administered or Device Applied"
                },
                {
                  "url" : "statement",
                  "valueString" : "// 10/29: Replaced DeviceUseStatement with Procedure with a new value set and procedure.usdCode for specifying devices\ndefine \"VTE Prophylaxis by Medication Administered or Device Applied\":\n ( [\"MedicationAdministration\": medication in \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"] VTEMedication\n where VTEMedication.status ='completed'\n\t\t\t and VTEMedication.dosage.route in \"Subcutaneous route\"\n )\n union ([\"MedicationAdministration\": medication in \"Low Molecular Weight Heparin for VTE Prophylaxis\"] LMWH where LMWH.status = 'completed')\n union ([\"MedicationAdministration\": medication in \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"] FactorXa where FactorXa.status = 'completed')\n union ([\"MedicationAdministration\": medication in \"Warfarin\"] Warfarin where Warfarin.status = 'completed')\n union (\n [\"Procedure\": \"Device Application\"] DeviceApplied\n where DeviceApplied.status = 'complete'\n and (DeviceApplied.usedCode in \"Intermittent pneumatic compression devices (IPC)\"\n or DeviceApplied.usedCode in\"Venous foot pumps (VFP)\"\n or DeviceApplied.usedCode in \"Graduated compression stockings (GCS)\"\n )\n )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 5
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure\":\n \t( from\n \t\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n \t\t\t\"VTE Prophylaxis by Medication Administered or Device Applied\" VTEProphylaxis\n \t\twhere Coalesce(Global.\"Normalize Interval\"(VTEProphylaxis.effective), Global.\"Normalize Interval\"(VTEProphylaxis.performed)) starts during TJC.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.period)\n \t\treturn QualifyingEncounter\n \t)\n \tunion (\n from\n \t\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n \t\t\t[\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \t\t\t\"VTE Prophylaxis by Medication Administered or Device Applied\" VTEProphylaxis\n\t\t\twhere Global.\"Normalize Interval\"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n\t\t\t\tand Coalesce(Global.\"Normalize Interval\"(VTEProphylaxis.effective), Global.\"Normalize Interval\"(VTEProphylaxis.performed)) starts during TJC.\"CalendarDayOfOrDayAfter\"(end of Global.\"Normalize Interval\"(AnesthesiaProcedure.performed))\n\t\t\treturn QualifyingEncounter\n\t)"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 6
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\":\n\t( from\n \t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n \t\t\t[\"MedicationAdministration\": medication in \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"] FactorXaMedication\n where FactorXaMedication.status = 'completed'\n and Global.\"Normalize Interval\"(FactorXaMedication.effective) starts during TJC.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.period)\n return QualifyingEncounter\n )\n union ( from\n \t\t\t\t \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n \t\t\t\t[\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \t\t\t\t[\"MedicationAdministration\": medication in \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"] FactorXaMedication\n \t\t\twhere FactorXaMedication.status = 'completed'\n and AnesthesiaProcedure.status = 'completed'\n \t\t\t and Global.\"Normalize Interval\"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n \t\t\t\t\tand Global.\"Normalize Interval\"(FactorXaMedication.effective) starts during TJC.\"CalendarDayOfOrDayAfter\"(end of Global.\"Normalize Interval\"(AnesthesiaProcedure.performed))\n \t\t\treturn QualifyingEncounter\n \t\t)"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 7
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE"
                },
                {
                  "url" : "statement",
                  "valueString" : "/*NOTE: Feedback at Digitial Quality Summit 2019 indicates verificationStatus may be difficult for implementers to retrieve\n both condition.clinicalStatus and condition.verificationStatus = 'confirmed'\n*/\ndefine \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\":\n\t( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n\t\twith [\"Condition\": code in \"Atrial Fibrillation/Flutter\"] AtrialFibrillation\n\t\tsuch that FHIRHelpers.ToConcept(AtrialFibrillation.clinicalStatus) in { Global.\"active\", Global.\"recurrence\", Global.\"relapse\" }\n\t\t\tand Global.\"Normalize Interval\"(AtrialFibrillation.onset) starts on or before end of QualifyingEncounter.period\n )\n union ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n \t\t\t\twhere Global.EncounterDiagnosis(QualifyingEncounter).code in \"Atrial Fibrillation/Flutter\"\n \t\t\t)\n union ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n \t\t\t\twith [\"Condition\": code in \"Venous Thromboembolism\"] VTEDiagnosis\n \t\t\t\tsuch that FHIRHelpers.ToConcept(VTEDiagnosis.clinicalStatus) in { Global.\"inactive\", Global.\"remission\", Global.\"resolved\" }\n \t\t\t\t\t//and VTEDiagnosis.verificationStatus = 'confirmed'\n \t\t\t\tand Global.\"Normalize Interval\"(VTEDiagnosis.onset) before start of QualifyingEncounter.period\n \t\t)"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 8
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\":\n\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n\twith ( [\"Procedure\": \"Hip Replacement Surgery\"]\n \t\t\tunion [\"Procedure\": \"Knee Replacement Surgery\"] ) HipKneeProcedure\n\tsuch that HipKneeProcedure.status = 'completed'\n\t and Global.\"Normalize Interval\"(HipKneeProcedure.performed) starts on or before end of QualifyingEncounter.period"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 9
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Is In Low Risk for VTE or On Anticoagulant"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Is In Low Risk for VTE or On Anticoagulant\":\n\t ( [\"Observation\": \"Risk for venous thromboembolism\"] VTERiskAssessment\n\t\t\t where VTERiskAssessment.value in \"Low Risk\"\n and VTERiskAssessment.status in {'final','amended', 'corrected'}\n\t )\n union ( [\"Observation\": \"INR\"] INRLabTest\n where INRLabTest.value as Quantity > 3.0\n and INRLabTest.status in {'final','amended', 'corrected'}\n return \"Observation\" { id: INRLabTest.id, effective: INRLabTest.issued }\n )\n union ((( [\"MedicationAdministration\": \"Unfractionated Heparin\"] UnfractionatedHeparin\n where UnfractionatedHeparin.dosage.route in \"Intravenous route\"\n )\n union [\"MedicationAdministration\": \"Direct Thrombin Inhibitor\"]\n union [\"MedicationAdministration\": \"Glycoprotein IIb/IIIa Inhibitors\"] ) AnticoagulantMedication\n where AnticoagulantMedication.status = 'complete'\n return \"Observation\" { id: AnticoagulantMedication.id, effective: AnticoagulantMedication.effective }\n )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 10
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\":\n \t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"Is In Low Risk for VTE or On Anticoagulant\" VTERiskAssessment\n such that Global.\"Normalize Interval\"(VTERiskAssessment.effective) starts during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 11
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\":\n \tfrom\n \t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n \t\t[\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \t\t\"Is In Low Risk for VTE or On Anticoagulant\" VTERiskAssessment\n\twhere Global.\"Normalize Interval\"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n \t\t\tand Global.\"Normalize Interval\"(VTERiskAssessment.effective) starts during TJC.\"CalendarDayOfOrDayAfter\"(end of Global.\"Normalize Interval\"(AnesthesiaProcedure.performed))\n\treturn QualifyingEncounter"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 12
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Encounter With Low Risk for VTE or Anticoagulant Administered"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Encounter With Low Risk for VTE or Anticoagulant Administered\":\n \"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\"\n \t union \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\""
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 13
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "No VTE Prophylaxis Medication Administered or Ordered"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"No VTE Prophylaxis Medication Administered or Ordered\":\n ((\t[\"MedicationAdministration\": medication in \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"]\n union\n\t [\"MedicationAdministration\": medication in \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\n union\n\t [\"MedicationAdministration\": medication in \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\n union\n\t [\"MedicationAdministration\": medication in \"Warfarin\"]\n ) MedicationAdm\n where MedicationAdm.status = 'not-done'\n )\n union\n\t ((\t[\"MedicationRequest\": medication in \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"]\n \tunion\n \t [\"MedicationRequest\": medication in \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\n union\n \t[\"MedicationRequest\": medication in \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\n union\n \t[\"MedicationRequest\": medication in \"Warfarin\"]\n ) MedicationOrder\n \twhere\tMedicationOrder.doNotPerform is true\n and MedicationOrder.status in {'completed', 'cancelled'}\n //11/5 discussion: all expressions for QI-Core must include a status.\n //Therefore, we need ServiceRequest.status = completed; and MedicationRequest.status = cancelled (or completed, since cancelled indicates it was once ordered but intentionally never filled).\n //So the not done issue is handled by ServiceRequest.doNotPerform = True Or MedicationRequest.doNotPerform = True\n )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 14
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\":\n \t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with\t\"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\n \tsuch that Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in \"Medical Reason\"\n \t\t\tand Coalesce(NoVTEMedication.authoredOn, start of Global.\"Normalize Interval\"(NoVTEMedication.effective)) during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 15
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "No VTE Prophylaxis Device Applied or Ordered"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"No VTE Prophylaxis Device Applied or Ordered\":\n ((\n [\"ServiceRequest\": \"Venous foot pumps (VFP)\"]\n union [\"ServiceRequest\": \"Intermittent pneumatic compression devices (IPC)\"]\n union [\"ServiceRequest\": \"Graduated compression stockings (GCS)\"]\n ) DeviceOrder\n where DeviceOrder.status = 'completed'\n //11/5 discussion: all expressions for QI-Core must include a status\n //ServiceRequest.status - draft | active | suspended | completed | entered-in-error | cancelled\n and DeviceOrder.doNotPerform is true\n return {id: DeviceOrder.id, requestStatusReason: GetStatusReason(DeviceOrder), authoredOn: DeviceOrder.authoredOn}\n )\n union\n (\n [\"Procedure\": \"Device Application\"] DeviceApplied\n let DeviceNotDoneTiming: Global.GetExtension(DeviceApplied, 'qicore-recorded').value\n where (DeviceApplied.usedCode in \"Intermittent pneumatic compression devices (IPC)\"\n or DeviceApplied.usedCode in \"Venous foot pumps (VFP)\"\n or DeviceApplied.usedCode in \"Graduated compression stockings (GCS)\"\n )\n and DeviceApplied.status = 'not-done'\n return {id: DeviceApplied.id, requestStatusReason: DeviceApplied.statusReason, authoredOn: DeviceNotDoneTiming}\n\n )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 16
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n \twith \"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\n such that NoVTEDevice.requestStatusReason in \"Medical Reason\"\n and NoVTEDevice.authoredOn during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 17
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "EXM108-FHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\":\n\tfrom\n \t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n \t\t[\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \t\t\"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\n\twhere Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in \"Medical Reason\"\n\t\t\tand AnesthesiaProcedure.status = 'completed'\n\t\t\tand Global.\"Normalize Interval\"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period\n\t\t\tand Coalesce(NoVTEMedication.authoredOn, st  "status"
              ],
              "codeFilter" : [
                {
                  "path" : "medication",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"
                }
              ]
            },
            {
              "type" : "MedicationAdministration",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
              ],
              "mustSupport" : [
                "medication",
                "status"
              ],
              "codeFilter" : [
                {
                  "path" : "medication",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"
                }
              ]
            },
            {
              "type" : "MedicationAdministration",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
              ],
              "mustSupport" : [
                "medication",
                "status"
              ],
              "codeFilter" : [
                {
                  "path" : "medication",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"
                }
              ]
            },
            {
              "type" : "MedicationAdministration",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
              ],
              "mustSupport" : [
                "effective",
                "medication",
                "status"
              ],
              "codeFilter" : [
                {
                  "path" : "medication",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134"
                }
              ]
            },
            {
              "type" : "MedicationRequest",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
              ],
              "mustSupport" : [
                "medication"
              ],
              "codeFilter" : [
                {
                  "path" : "medication",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"
                }
              ]
            },
            {
              "type" : "MedicationRequest",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
              ],
              "mustSupport" : [
                "medication"
              ],
              "codeFilter" : [
                {
                  "path" : "medication",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"
                }
              ]
            },
            {
              "type" : "MedicationRequest",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
              ],
              "mustSupport" : [
                "medication"
              ],
              "codeFilter" : [
                {
                  "path" : "medication",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"
                }
              ]
            },
            {
              "type" : "MedicationRequest",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
              ],
              "mustSupport" : [
                "medication"
              ],
              "codeFilter" : [
                {
                  "path" : "medication",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"
                }
              ]
            },
            {
              "type" : "ServiceRequest",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230"
                }
              ]
            },
            {
              "type" : "ServiceRequest",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214"
                }
              ]
            },
            {
              "type" : "ServiceRequest",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256"
                }
              ]
            },
            {
              "type" : "ServiceRequest",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
              ],
              "mustSupport" : [
                "code",
                "intent"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Procedure"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Procedure"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Procedure"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Procedure"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Procedure"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Procedure"
              ],
              "mustSupport" : [
                "code",
                "status"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Procedure"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Procedure"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Procedure"
              ],
              "mustSupport" : [
                "code",
                "statusReason",
                "usedCode",
                "id",
                "status"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Procedure"
              ],
              "mustSupport" : [
                "code",
                "performed",
                "status"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"
                }
              ]
            },
            {
              "type" : "Condition",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Condition"
              ],
              "mustSupport" : [
                "id"
              ]
            },
            {
              "type" : "Condition",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Condition"
              ],
              "mustSupport" : [
                "code",
                "clinicalStatus",
                "onset"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202"
                }
              ]
            },
            {
              "type" : "Condition",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Condition"
              ],
              "mustSupport" : [
                "code",
                "clinicalStatus",
                "onset"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279"
                }
              ]
            },
            {
              "type" : "Observation",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Observation"
              ],
              "mustSupport" : [
                "code",
                "value",
                "status"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "code" : [
                    {
                      "system" : "http://loinc.org",
                      "code" : "72136-5",
                      "display" : "Risk for venous thromboembolism"
                    }
                  ]
                }
              ]
            },
            {
              "type" : "Observation",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Observation"
              ],
              "mustSupport" : [
                "code",
                "id",
                "issued",
                "value",
                "status"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213"
                }
              ]
            },
            {
              "type" : "Coverage",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Coverage"
              ],
              "mustSupport" : [
                "period",
                "type"
              ],
              "codeFilter" : [
                {
                  "path" : "type",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
                }
              ]
            },
            {
              "type" : "Location",
              "profile" : [
                "http://hl7.org/fhir/StructureDefinition/Location"
              ],
              "mustSupport" : [
                "id"
              ]
            }
          ]
        }
      ],
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis",
          "valueCode" : "Encounter"
        },
        {
          "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
          "valueCanonical" : "#effective-data-requirements-exm108"
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/Measure/EXM108-FHIR",
      "identifier" : [
        {
          "use" : "official",
          "system" : "http://example.org/fhir/cqi/ecqm/Measure/Identifier/cms",
          "value" : "108"
        }
      ],
      "version" : "8.2.000",
      "name" : "EXM108",
      "title" : "EXM108 - Venous Thromboembolism Prophylaxis",
      "status" : "active",
      "experimental" : true,
      "date" : "2022-02-22",
      "publisher" : "HL7 International / Clinical Quality Information",
      "contact" : [
        {
          "telecom" : [
            {
              "system" : "url",
              "value" : "http://www.hl7.org/Special/committees/cqi"
            }
          ]
        }
      ],
      "description" : "This measure assesses the number of patients who received VTE prophylaxis or have documentation why no VTE prophylaxis was given the day of or the day after hospital admission or surgery end date for surgeries that start the day of or the day after hospital admission",
      "useContext" : [
        {
          "code" : {
            "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
            "code" : "venue",
            "display" : "Venue"
          },
          "valueCodeableConcept" : {
            "coding" : [
              {
                "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/intended-venue-codes",
                "code" : "eh",
                "display" : "EH"
              }
            ]
          }
        }
      ],
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "urn:iso:std:iso:3166",
              "code" : "US"
            }
          ]
        }
      ],
      "copyright" : "Measure specifications are in the Public Domain.\n\nLOINC(R) is a registered trademark of the Regenstrief Institute.\n\nThis material contains SNOMED Clinical Terms(R) (SNOMED CT(C)) copyright 2004-2017 International Health Terminology Standards Development Organization. All rights reserved.",
      "approvalDate" : "2019-03-08",
      "lastReviewDate" : "2019-03-08",
      "effectivePeriod" : {
        "start" : "2018-01-01",
        "end" : "2018-12-31"
      },
      "topic" : [
        {
          "coding" : [
            {
              "system" : "http://loinc.org",
              "code" : "57024-2",
              "display" : "Health Quality Measure Document"
            }
          ]
        }
      ],
      "library" : [
        "http://hl7.org/fhir/us/cqfmeasures/Library/EXM108-FHIR"
      ],
      "disclaimer" : "These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty",
      "scoring" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/measure-scoring",
            "code" : "proportion",
            "display" : "Proportion"
          }
        ]
      },
      "type" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/measure-type",
              "code" : "process"
            }
          ]
        }
      ],
      "rationale" : "Hospitalized patients at high-risk for VTE may develop an asymptomatic deep vein thrombosis (DVT), and die from pulmonary embolism (PE) even before the diagnosis is suspected. The majority of fatal events occur as sudden or abrupt death, underscoring the importance of prevention as the most critical action step for reducing death from PE (Geerts, et al, 2008).\n\nThe estimated annual incidence of deep-vein thrombosis (DVT) and pulmonary embolism (PE), known collectively as venous thromboembolism (VTE), is approximately 900,000 (Geerts, et al, 2008). Approximately two-thirds of cases of DVT or PE are associated with recent hospitalization. This is consistent with the 2001 report by The Agency for Healthcare Research and Quality (AHRQ). AHRQ indicates that \"the appropriate application of effective preventive measures in hospitals has major potential for improving patient safety by reducing the incidence of venous thromboembolism\" (Shojania, 2001).\n\nDespite its proven effectiveness, rates of appropriate thromboprophylaxis remain low in both medical and surgical patients. A recent analysis from the ENDORSE survey, which evaluated prophylaxis rates in 17,084 major surgery patients, found that more than one third of patients at risk for VTE (38%) did not receive prophylaxis and that rates varied by surgery type (Cohen, et al., 2008).\n\nIn a review of evidence-based patient safety practices, the Agency for Healthcare Research and Quality defined thromboprophylaxis against VTE as the \"number one patient safety practice\" for hospitalized patients (Shojania, 2001). Updated \"safe practices\" published by the National Quality Forum (NQF) recommend routine evaluation of hospitalized patients for risk of VTE and use of appropriate prophylaxis (National Quality Forum. National Voluntary Consensus Standards for Prevention and Care of Venous Thromboembolism, 2006).\n\nAs noted by the ACCP, a vast number of randomized clinical trials provide irrefutable evidence that thromboprophylaxis reduces VTE events, and there are studies that have also shown that fatal PE is prevented by thromboprophylaxis (Geerts, et al. 2008).\n\nSome select surgeries have previously been monitored in the Surgical Care Improvement Project; since performance on these surgeries has achieved very high levels, they are not included in this measure.",
      "clinicalRecommendationStatement" : "Failure to recognize and protect patients at risk for venous thromboembolism (VTE) increases the chances for acutely ill hospitalized patients at high risk for developing a deep vein thrombosis or dying from a pulmonary emboli. Screening all patients is the only evidence based practice in reducing incidence of disease. All hospitalized patients should be evaluated for primary VTE prophylaxis, and given appropriate prophylaxis when indicated.",
      "improvementNotation" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/measure-improvement-notation",
            "code" : "increase",
            "display" : "Increased score indicates improvement"
          }
        ]
      },
      "guidance" : "When low dose unfractionated heparin is administered for VTE Prophylaxis, the intended administration route for low dose unfractionated heparin is subcutaneous.\n\nReasons for no pharmacological and no mechanical VTE prophylaxis must be explicitly documented by the MD/APN/PA or pharmacist and linked with VTE prophylaxis. Ambulation alone is not a sufficient reason for not administering VTE prophylaxis. In order for ambulation/patient ambulating to be considered as an acceptable reason, there needs to be explicit documentation, e.g., \"patient out of bed and ambulating in halls - no VTE prophylaxis needed.\"",
      "group" : [
        {
          "population" : [
            {
              "code" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                    "code" : "initial-population",
                    "display" : "Initial Population"
                  }
                ]
              },
              "description" : "Patients age 18 and older discharged from hospital inpatient acute care without a diagnosis of venous thromboembolism (VTE) or obstetrics with a length of stay less than or equal to 120 days that ends during the measurement period",
              "criteria" : {
                "language" : "text/cql-identifier",
                "expression" : "Initial Population"
              }
            },
            {
              "code" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                    "code" : "numerator",
                    "display" : "Numerator"
                  }
                ]
              },
              "description" : "Patients who received VTE prophylaxis:\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date for surgeries that end the day of or the day after hospital admission\n\nPatients who have documentation of a reason why no VTE prophylaxis was given:\n- between arrival and hospital admission\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date (for surgeries that end the day of or the day after hospital admission)",
              "criteria" : {
                "language" : "text/cql-identifier",
                "expression" : "Numerator"
              }
            },
            {
              "code" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                    "code" : "denominator",
                    "display" : "Denominator"
                  }
                ]
              },
              "description" : "All patients in the initial population",
              "criteria" : {
                "language" : "text/cql-identifier",
                "expression" : "Denominator"
              }
            },
            {
              "code" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                    "code" : "denominator-exclusion",
                    "display" : "Denominator Exclusion"
                  }
                ]
              },
              "description" : "* Patients who have a length of stay less than 2 days\n* Patients with comfort measures documented anytime between arrival and the day after hospital admission\n* Patients with comfort measures documented by the day after surgery end date for surgeries that start the day of or the day after hospital admission\n* Patients who are direct admits to intensive care unit (ICU), or transferred to ICU the day of or the day after hospital admission with ICU length of stay greater than or equal to one day\n* Patients with a principal diagnosis of mental disorders or stroke\n* Patients with a principal procedure of Surgical Care Improvement Project (SCIP) VTE selected surgeries",
              "criteria" : {
                "language" : "text/cql-identifier",
                "expression" : "Denominator Exclusion"
              }
            }
          ]
        }
      ],
      "supplementalData" : [
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
              "valueCode" : "summary"
            }
          ],
          "usage" : [
            {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                  "code" : "supplemental-data"
                }
              ]
            }
          ],
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "SDE Ethnicity"
          }
        },
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
              "valueCode" : "summary"
            }
          ],
          "usage" : [
            {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                  "code" : "supplemental-data"
                }
              ]
            }
          ],
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "SDE Payer"
          }
        },
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
              "valueCode" : "summary"
            }
          ],
          "usage" : [
            {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                  "code" : "supplemental-data"
                }
              ]
            }
          ],
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "SDE Race"
          }
        },
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
              "valueCode" : "summary"
            }
          ],
          "usage" : [
            {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                  "code" : "supplemental-data"
                }
              ]
            }
          ],
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "SDE Sex"
          }
        }
      ]
    }

    XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.